package com.diandian.backend.eleme.retail.exchange.req;

import com.diandian.base.boot.starter.exception.DefaultException;

import java.io.Serializable;

public class GetSkuStockReq implements Serializable {

    private String offlineStoreCode; // 线下门店id
    private String skuCode; // 线下商品id

    public boolean check(){
        if((this.offlineStoreCode == null || "".equals(this.offlineStoreCode))){
            throw new DefaultException("门店编码不能为空");
        }
        if(this.skuCode == null || "".equals(this.skuCode)){
            throw new DefaultException("SKU编码不能为空");
        }
        return true;
    }

    public String getOfflineStoreCode() {
        return offlineStoreCode;
    }

    public void setOfflineStoreCode(String offlineStoreCode) {
        this.offlineStoreCode = offlineStoreCode;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }
}
